package com.world.rickcloudendpoint.stream.filter;

import com.world.rickcloudendpoint.common.exception.FilterException;
import com.world.rickcloudendpoint.stream.message.Message;

import java.util.List;

/**
 * @description: 过滤接口
 * @author: jlsong
 * @date: 2022/03/11 20:41:38
 * @version: 1.0
 */
public interface Filter {
    /**
     * 消息过滤接口
     */
    FilteredMessages filter(List<Message> messages) throws FilterException;
}
